$(function() {
  module('menus');
  
  asyncTest("Evaluation",  function() {
	var doc = {};
	doc._id = "abc";
	
	JSandbox.eval(
		"['Agile_Story', input._id]", 
		function(r) { 
			equals(r.length, 2, "data, callback");
			start(); 
		},
		doc,
		function(err) {
			console.dir(err);
		}
	);
  });
  
  asyncTest("Function passing",  function() {
	var doc = {};
	doc._id = "abc";
	doc['-parent'] = {};
	doc['-parent'].id = 7;
	
	JSandbox.eval(
		"input['-parent'].id", 
		function(r) { 
			equals(r, 7, "data, callback");
			start(); 
		},
		doc,
		function(err) {
			console.dir(err);
		}
	);
  });  
  
  
});